import java.util.*;
import org.rythmengine.template.TemplateBase;
import java.io.*;

public class copy_ts_html__R_T_C__ extends org.rythmengine.template.TagBase {

	public java.lang.String __getName() {
		return "copy.ts.html";
	}


	protected java.lang.String __renderArgName(int __pos) {
		int __p = 0;
		throw new ArrayIndexOutOfBoundsException();
	}

	protected java.util.Map<java.lang.String, java.lang.Class> __renderArgTypeMap() {
		java.util.Map<java.lang.String, java.lang.Class> __m = new java.util.HashMap<String, Class>();
		return __m;
	}

	@SuppressWarnings("unchecked")
	public TemplateBase __setRenderArgs(java.util.Map<java.lang.String, java.lang.Object> __args) {
		if (null == __args) throw new NullPointerException();
		if (__args.isEmpty()) return this;
		super.__setRenderArgs(__args);
		return this;
	}

	@SuppressWarnings("unchecked") @Override public TemplateBase __setRenderArg(java.lang.String __name, java.lang.Object __arg) {
		super.__setRenderArg(__name, __arg);
		return this;
	}

	@SuppressWarnings("unchecked") public TemplateBase __setRenderArg(int __pos, java.lang.Object __arg) {
		int __p = 0;
		if(0 == __pos) __setRenderArg("arg", __arg);
		return this;
	}





	public org.rythmengine.utils.TextBuilder build(){
		buffer().ensureCapacity(1112);
p("<html>\n<!-- <body onload=\"domclick()\"> -->\n<body>\n"); //line: 4
p('<');p("script type=\"text/javascript\" src=\""); //line: 1
{ //line: 1
	org.rythmengine.template.ITag.__ParameterList _pl = null;  //line: 1
	_pl = new org.rythmengine.template.ITag.__ParameterList(); //line: 1
	_pl.add("","/static/js/jquery-1.10.2.min.js"); //line: 1
		__invokeTag(1, "res", _pl, false); //line: 1
} //line: 1
p("\">"); //line: 1
;__ctx.pushCodeType((org.rythmengine.extension.ICodeType)org.rythmengine.extension.ICodeType.DefImpl.JS.clone()); //line: 4
p("</script>");__ctx.popCodeType(); //line: 4
p("\n<input id=\"hei\" type=\"button\" value=\"hehe\" onclick=\"copy('已复制哦!')\"/>\n</body>\n</html>\n"); //line: 8
p("<script>");__ctx.pushCodeType((org.rythmengine.extension.ICodeType)org.rythmengine.extension.ICodeType.DefImpl.JS.clone()); //line: 8
p("\nfunction copy1(url){\nvar oInput = document.createElement('input');\nvar dd = new Date();\nurl = dd.toLocaleString()+url;\noInput.value = url;\ndocument.body.appendChild(oInput);\noInput.select(); // 选择对象\nvar ss = document.execCommand(\"Copy\",true); // 执行浏览器复制命令\nalert('复制成功'+ss);\n}\nfunction copy(s){\nif(window.clipboardData){\nalert(1);\nwindow.clipboardData.setData('text',s);\n}else{\nalert(2);\ndocument.oncopy=function(e){\ne.clipboardData.setData('text',s);\ne.preventDefault();\ndocument.oncopy=null;\n}\ndocument.execCommand('Copy');\n}\n}\nfunction domclick(){\nalert(1);\n$(\"#hei\").click();\n}\n$(document).ready(function () {\nalert(document);\n$(\"#hei\").click();\n});\n// location.href=\"http://www.baidu.com\";\n"); //line: 45
p("</script>");__ctx.popCodeType(); //line: 45

		return this;
	}

}
